import request from '@/utils/request'

export function getEmployeeSimple() {
  return request({
    url: '/sys/user/simple',
    method: 'GET'
  })
}

export function getEmployees(params) {
  return request({
    url: '/sys/user',
    method: 'GET',
    params
  })
}

export function delEmployees(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'delete'
  })
}

export function addEmployees() {
  return request({
    url: '/sys/role',
    method: 'POST'
  })
}

export function assignRoles(data) {
  return request({
    url: '/sys/user/assignRoles',
    method: 'put',
    data
  })
}

